import request from '@/utils/request.js'

// 动物列表查询
export const animalListService = (params) => {
    return request.get('/animal',{params:params})
}

// 动物添加
export const animalAddService = (animalDate) => {
    return request.post('/animal', animalDate)
}

// 动物修改
export const animalUpdateService = (animalDate) => {
    return request.put('/animal', animalDate)
}

// 动物删除
export const animalDeleteService = (id) => {
    return request.delete('/animal?id=' + id)
}